﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>H+ 后台主题UI框架 - 百度ECHarts</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">
    <link href="/css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
    <link href="/css/font-awesome.min.css?v=4.3.0" rel="stylesheet">
    <link href="/css/animate.min.css" rel="stylesheet">
    <link href="/css/style.min.css?v=3.2.0" rel="stylesheet">
</head>
<body>

    <div class="echarts" id="echarts-bar-chart"></div>
    <!-- 全局js -->
    <script src="/js/jquery-2.1.1.min.js"></script>
    <script src="/js/bootstrap.min.js?v=3.4.0"></script>

    <!-- ECharts -->
    <script src="/js/plugins/echarts/echarts-all.js"></script>


    <script>
    $(function () {
        var i = echarts.init(document.getElementById("echarts-bar-chart"));
        var q = {
            title: { text: "新员培训数据监控" },
            tooltip: { trigger: "axis" },
            legend: { data: ["参与人数", "总人数"] },
            grid: { x: 30, x2: 40, y2: 24 },
            calculable: true,
            xAxis: [{
                type: "category",
                data: ["财务部", "后勤部", "保卫部", "地勤部", "人事部", "业务部", "信息部"]
            }], yAxis: [{ type: "value" }],
            series: [{
                name: "参与人数", type: "bar",
                data: [5, 8, 7,10, 5, 10, 15,],
                markPoint: {
                    data: [{ type: "max", name: "最大值" },
                        { type: "min", name: "最小值" }]
                }, markLine: { data: [{ type: "average", name: "平均值" }] }
            }, {
                name: "总人数", type: "bar", data: [5, 10, 10, 10, 5, 10, 16],
                markPoint: {
                    data: [{ name: "参与最多", value:15 , xAxis: 7, yAxis: 183, symbolSize: 18 },
                        { name: "参与最少", value: 5, xAxis: 11, yAxis: 3 }]
                }, markLine: { data: [{ type: "average", name: "平均值" }] }
            }]
        }; i.setOption(q); window.onresize = i.resize;
    });

    </script>

</body>
</html>